//package org.rcy.ruicingmarket.config;
//
//import com.fasterxml.jackson.databind.ObjectMapper;
//import feign.codec.Decoder;
//import feign.codec.Encoder;
//import feign.form.FormEncoder;
//import feign.jackson.JacksonDecoder;
//import feign.jackson.JacksonEncoder;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Primary;
//
//@Configuration
//public class FeignConfiguration {
//
//	@Bean
//	@Primary
//	@ConditionalOnMissingBean(Decoder.class)
//	public Decoder jacksonDecoder(ObjectMapper objectMapper) {
//		return new JacksonDecoder(objectMapper);
//	}
//
//	@Bean
//	@Primary
//	@ConditionalOnMissingBean(Encoder.class)
//	public Encoder jacksonEncoder(ObjectMapper objectMapper) {
//		return new FormEncoder(new JacksonEncoder(objectMapper));
//	}
//}